Skip to content

Conversation

@vdiez
Copy link
Contributor

@vdiez vdiez commented Oct 27, 2025

@sonarqube-next
Copy link

Copy link
Contributor

@zglicz zglicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Glad you had the time to work on it 👍

program,
...fieldsForJsTsAnalysisInput(),
});
pendingFiles.delete(fileName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this passing in a structure, mutating it as we iterate over it. Can we have another structure for "completed" files, so that when we loop through pending files, we just check if its in the completed set of files?

if (isAnalysisCancelled()) {
return;
}
if (!pendingFiles.has(pendingFile) || !files[pendingFile]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how can a file be in pendingFiles and not int files? If that is possible, shouldn't we first filter the pendingFiles by the files object?

Comment on lines -17 to -21
import { JsTsAnalysisInput, JsTsAnalysisOutput, JsTsAnalysisOutputWithAst } from '../analysis.js';
import { RuleConfig } from '../../linter/config/rule-config.js';
import { EmbeddedAnalysisOutput } from '../../embedded/analysis/analysis.js';
import { ErrorCode } from '../../../../shared/src/errors/error.js';
import { Configuration } from '../../../../shared/src/helpers/configuration.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ehhh, we really should add this rule into SQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants